//
//  CommandThread.h
//  ServiceDebianManager
//
//  Created by Léo Lego on 11/05/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SSHCore.h"
@class ServicesManager;
@interface CommandThread : NSObject{
	NSString *command;
	NSString *value;
	NSString *passwd;
	NSString *host;
	NSNumber *port;
	ssh * mySsh;
	
	ServicesManager * mother;

}

-(id)initWithMother:(ServicesManager *)Mother;
@property (retain)NSString * command;
@property (retain)NSString * value;
@property (retain)NSString * passwd;
@property (retain)NSString * host;
@property (retain)NSNumber * port;

/* setter */
-(void)setAllPasswd:(NSString*)pass Host:(NSString*)hst Port:(NSNumber*)prt Command:(NSString *) cmd;
-(void)setAllCommand:(NSString *)cmd Value:(NSString*)vlu Passwd:(NSString*)pass Host:(NSString*)hst Port:(NSNumber*)prt;
/* thread */
- (void)commandSystem;
- (void)commandSimple;
- (void)commandServices;
-(void)test;
@end
